﻿using System;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BWAdministrator
{
    public partial class Form1 : Form
    {
        DataSet1TableAdapters.usersTableAdapter adapter = null;
        SqlConnection connection = null;
        public Form1()
        {
            InitializeComponent();
        }

        private void OnSave(object sender, EventArgs e)
        {
            adapter.Update(dataSet1.users);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            connection = new SqlConnection(Properties.Settings.Default.TestConnectionString);
            adapter = new DataSet1TableAdapters.usersTableAdapter();
            adapter.Connection = connection;
            adapter.Fill(dataSet1.users);
        }
    }
}
